import request from '@u/request'

export function exportMonthPlan(data) {
  return request({
    url: '/project/month/plan/export/plan',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportYearPlan(data) {
  return request({
    url: '/project/year/plan/export',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportCompleteDetail(data) {
  return request({
    url: '/project/ledger/export/complete/detail',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportCompleteList(params) {
  return request({
    url: '/project/ledger/export/complete/list',
    method: 'get',
    responseType: 'blob',
    params,
  })
}

export function exportFinanceDetail(data) {
  return request({
    url: '/project/ledger/export/finance/detail',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportFinanceList(params) {
  return request({
    url: '/project/ledger/export/finance/list',
    method: 'get',
    responseType: 'blob',
    params,
  })
}
